import plotly.graph_objects as go
import numpy as np

x = np.arange(-2 * np.pi, 4 * np.pi, 0.1)
y_sin = np.sin(x)
y_cos = np.cos(x)

fig = go.Figure()
fig.add_trace(go.Scatter(x=x, y=y_sin, mode="lines", name="sin"))
fig.add_trace(go.Scatter(x=x, y=y_cos, mode="lines", name="cos"))

fig.show()
